/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ars.sirproj.dao;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 *
 * @author Anibal
 */
public class RaizDaoImpl extends HibernateDaoSupport implements RaizDao{
    
 @Override
 public Object findById(Class<?> entityClass, Long entityId){
    Object object = null;
    try{
        HibernateUtil session = new HibernateUtil();
        System.out.println("Entity: "+entityClass);
        System.out.println("Entity Id: "+entityId);
        System.out.println(getHibernateTemplate().get(entityClass, entityId));
    
    }catch(DataAccessException e){
        System.out.println("Exception: "+e);
     }
 
    return object;
 }
    
}
